import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/constants'

// 格式化患病时长的处理函数
export const formatIllnessTime = (time: IllnessTime) =>
  timeOptions.find((item) => item.value === time)?.label
// 格式化是否就诊过的处理函数
export const formatflag = (flag: 0 | 1) =>
  flagOptions.find((item) => item.value === flag)?.label
